<html>
<head>
<title>MapXtreme Java JSP Custom Tag Sample</title>
<%@ taglib uri="/mapinfo" prefix="mapinfo" %>
<%@ taglib uri="/mapxtreme" prefix="mapxtreme" %>
<%@ page
	language = "java"
	contentType = "text/html;charset=UTF-8"
%>
</head>
<mapinfo:mapapp name="frames">
<body bgcolor="#0086B2" LEFTMARGIN="0" TOPMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0">

<center>
<mapxtreme:overviewMap width="260" height="120" showPoints="false" showPolylines="false" showPolygons="true" >
	<input type=hidden name="redirect" value="/overviewmap.jsp"><%-- This will redirect form submissions to RequestHandler back to this page --%>
</mapxtreme:overviewMap>
</center>

<%	//Refresh the map if the user recentered the overview map.
	String bean = request.getParameter(com.mapinfo.jsptags.TagBean.PARAMETER_KEY_NAME);
	if(bean!=null && bean.equals(com.mapinfo.jsptags.mapxtreme.OverviewMapBean.PARAMETER_KEY)) {
%>
	<form name='refreshmap' action='map.jsp' target='framesmapwindow'><input type=hidden name="fromoverviewmap" value="true"><input type=hidden name=refresh value='<%= Math.random() %>'></form>
	<script language="JavaScript">
	document.refreshmap.submit();
	</script>
<% } %>

</body>
</mapinfo:mapapp>
</html>
